var DlgChatboxContacts = _Panel.extend({
	
	retrieveContactsList: function()
	{
		chat.getChat().getContacts().update();
		
	}, // end function retrieveContactsList
	
	generateContents: function()
	{
		return '<div id="contactsList"><img src="ui/ajax-loader.gif"> Loading contacts list...</div>';
		
	},
	
	update: function()
	{
		if (!this.contentsInitialized)
			this.updateContents(this.generateContents());
		else
			this.retrieveContactsList();
		
	},
	
	initialize: function(main)
	{
		this.parent();
		
		this.main = main;
		
		// Set window settings
		this.WindowID = 'Chatbox_Contacts';
		
		this.WindowTitle = 'Contacts';
		
		
		this.WindowLoc = ['left', 'top']
		this.WindowLocFixed = false;
		
		this.WindowSizeFixed = false;
		this.WindowSize = {x: 250, y: 350};
		
		this.WindowCloseByUser = false;
		
		this.WindowOnTop = null;
		
		this.WindowStyle = null;
		
		this.update();
		
	} // end function initialize
	
});

cimport_loaded('panels.Chatbox.Contacts');